package com.eric.controller;

import com.eric.domain.po.Menu;
import com.eric.service.TestService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("")
public class TestController {
    @Resource
    private TestService testService;

    @GetMapping("/menus")
    public List<Menu> getMenu(){
        return testService.getMenu();
    }
}
